    <extend name="base"/>
    <block name="main">
		<ul class="nav nav-pills nav-justified nav-tab">
		  <li><a href="{:U('Admin/Index/setting?op=qiniu')}">第三方</a></li>
		  <li><a href="{:U('Admin/Index/setting?op=vip')}">vip</a></li>
		  <li><a href="{:U('Admin/Index/setting?op=notice')}">公告</a></li>
		  <li><a href="{:U('Admin/Index/setting?op=lunbo')}">轮播</a></li>
		 <li class="active"><a href="{:U('Admin/Index/setting?op=ad')}">广告</a></li> 
		</ul>
<form action="{:U('Admin/Index/setting?op=adadd')}&do=insert" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <div class="panel panel-default">
            <div class="panel-heading">
                广告添加
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">排序</label>
                    <div class="col-sm-9 col-xs-12">
                                                        <input type="text" name="adorders" class="form-control">
                                <span class="help-block">数字越大，排名越靠前</span>
                                            </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>广告文字</label>
                    <div class="col-sm-9 col-xs-12">
                                                 <input type="text" id="adname" name="admessages" class="form-control" value="">
                                             </div>	
                </div>
                
                <div class="form-group">
                 	<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>广告图片</label>
                 	<div class="col-sm-9 col-xs-12">
					<div class="control-group js_uploadBox">
					    <div class="btn-upload">
					      <input class="js_upFile" type="file" name="adfile">
					    </div>
					    
					    <div class="js_showBox "><img class="js_logoBox" src="" width="100px"></div>
					 </div>
  				</div>

 

                
                
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">广告链接</label>
                    <div class="col-sm-9 col-xs-12">
                                                 <input type="text" name="adlink" class="form-control" value="">
                                            </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">作者昵称</label>
                    <div class="col-sm-9 col-xs-12">
                                                 <input type="text" name="writername" class="form-control" value="">
                                            </div>
                </div>
                
                <div class="form-group">
                 	<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>作者头像</label>
                 	<div class="col-sm-9 col-xs-12">
					<div class="control-group js_uploadBox">
					    <div class="btn-upload">
					      <input class="js_upFile" type="file" name="writerimgfile">
					    </div>
					    
					    <div class="js_showBox "><img class="js_logoBox" src="" width="100px"></div>
					 </div>
  				</div>
  				
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否显示</label>
                    <div class="col-sm-9 col-xs-12">
                                                    <label class="radio-inline">
                            <input type="radio" name="enabled" value="1'"> 是
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="enabled" value="0'" checked=""> 否
                        </label>
                                         </div>
                </div>
                
                    <div class="form-group"></div>
            <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                                                       <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1">
                            <input type="hidden" name="token" value="bd06da03">
                                               <input type="button" name="back" onclick="history.back()" style="margin-left:10px;" value="返回列表" class="btn btn-default">
                    </div>
            </div>
                
                
            </div>
        </div>
         
    
    
		</div></form>
		    </block>